package com.love.task;

import java.io.Serializable;



public class TaskItem implements Serializable 
{
	private static final long serialVersionUID = 1L;
	private String m_taskType;   
	private String m_taskTitle; 
	private String m_taskContext = new String(); 
	private String m_audioFilePath = new String();  
	private boolean m_isAdFirstShow = false;
	private boolean m_isDoubleTask = false; 
	private String m_role;
	
	
	public String getTaskRole()
	{
		return this.m_role;
	}
	
	public void setTaskRole(String role)
	{
		if (role.equals("boy"))
		{
			this.m_role =  "boy";
		}
		else if (role.equals("girl"))
		{
			this.m_role = "girl";
		}
		else 
		{
			this.m_role = "baby";
		}
	}
	
	public String getTaskType() 
	{
		return m_taskType;
	}
	
	
	public void setTaskType(String taskType) 
	{
		this.m_taskType = taskType;
	}
	
	public String getTaskTitle()
	{
		return m_taskTitle;
	}
	
	public void setTaskTitle(String taskTitle)
	{
		this.m_taskTitle = taskTitle;
		
	}
	
	public String getTaskContext() 
	{
		return m_taskContext;
	}
	
	
	public void setTaskContext(String taskContext) 
	{
		this.m_taskContext = taskContext;
	}
	
	
	public String getAudioFilePath() 
	{
		return m_audioFilePath;
	}
	public void setAudioFilePath(String audioFilePath) 
	{
		this.m_audioFilePath = audioFilePath;
	}
	
	public boolean setTaskItem(String taskType, String role, String taskContext, String audioFilePath)
	{
		if (taskType==null||
			taskType.length()==0||
			taskContext==null ||
			taskContext.length()==0)
		{
			return false;
		}
		
		this.m_role = role;
		this.m_taskType = taskType;
		this.m_taskContext = taskContext;
		this.m_audioFilePath = audioFilePath;
		
		return true;
	}
	//private boolean m_isAdShowing = false;
	
	public void setIsAdFirstShow(boolean isAdFirstShow)
	{
		this.m_isAdFirstShow = isAdFirstShow;
		
	}
	
	public boolean getIsAdFirstShow()
	{
		return this.m_isAdFirstShow;
	}
	
	public boolean getIsDoubleTask() 
	{
		return m_isDoubleTask;
	}
	
	public void setIsDoubleTask(boolean isDoubleTask) 
	{
		this.m_isDoubleTask = isDoubleTask;
	}

}
